Skip to content

make cohort initialization lighter#22

Open
pletzer wants to merge 3 commits into
phase3from
exp
Open

make cohort initialization lighter#22
pletzer wants to merge 3 commits into
phase3from
exp

Conversation

@pletzer

@pletzer pletzer commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

Moved the xinit call out of taskFunction. This reduces the the cohort init time from 0.1035 to 0.962 seconds. Same check sums.

@pletzer pletzer requested a review from innasenina June 15, 2026 02:46
@pletzer

pletzer commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator Author

Almost the same checksum:

[0] Checksum = 657797994.04915 time manager = 13.85008 sec (old)
login03~/nesi99999/seapodym-codebase-exp/example-configs/density_skj_fat$ grep cksum new.txt
[0] Checksum = 657797994.04914 time manager = 13.56412 sec (new)

@pletzer

pletzer commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator Author

Moved the reset(x) call out of SeapodymCohort.cpp to main_cohort.cpp. This reduced the execution time further:
[0] Checksum = 657797994.04914 time manager = 9.74669 sec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant